﻿@using PagedList.Mvc;
@using PagedList;
@{
    ViewBag.Title = "t22";
}
<link href="../../Css/StyleSheet1.css" rel="stylesheet" type="text/css" />
<link href="../../Css/PagedList.css" rel="stylesheet" type="text/css" />

<h3>
    List of @ViewBag.Names.TotalItemCount Names (Page Size: @ViewBag.Names.PageSize,
    Current Page: @ViewBag.Names.PageNumber)</h3>
<ol start="@ViewBag.Names.FirstItemOnPage">
    @foreach (var i in ViewBag.Names)
    {
        <li>@i</li>
    }
</ol>

<h3>Default Paging Control</h3>
@Html.PagedListPager((PagedList.IPagedList)ViewBag.Names, page => Url.Action("t22", new { page = page + 1 }))
